<!DOCTYPE html>
<html>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?5e8f1b6d8ba596b4ce441edb4cefe78f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<head>
	<title>站前学府网络售楼中心</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="main.css">
	<link rel="stylesheet" href="layui/css/layui.css"  media="all">
	<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
	<script src="jquery.form.js"></script>
	<script src="main.js"></script>
<script type="text/javascript">
    function browserRedirect() {
        var sUserAgent= navigator.userAgent.toLowerCase();
        var bIsIpad= sUserAgent.match(/ipad/i) == "ipad";
        var bIsIphoneOs= sUserAgent.match(/iphone os/i) == "iphone os";
        var bIsMidp= sUserAgent.match(/midp/i) == "midp";
        var bIsUc7= sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
        var bIsUc= sUserAgent.match(/ucweb/i) == "ucweb";
        var bIsAndroid= sUserAgent.match(/android/i) == "android";
        var bIsCE= sUserAgent.match(/windows ce/i) == "windows ce";
        var bIsWM= sUserAgent.match(/windows mobile/i) == "windows mobile";

        if (bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) {
           window.location.href = 'mbindex.html';
        } else {
          //不执行
        }
    }
    browserRedirect();//调用自身，页面一打开就开始跳转
</script>
</head>

<body>
  <div class="container">
	  <img class="banner" src="allimg/pc/banner.jpg">
	  <div class="bm" onclick="openT()">
	  <img class="baoming"src="allimg/pc/baoming.png" >
	  <img class="bmbtn" src="allimg/pc/btn.png">
	  <div class="bm_renshu" >已有<span class="rshu">0</span>人报名</div>
	  </div>
	  <img  class="youdian" style="margin-top:30px;" src="allimg/pc/youdian1.jpg">
	  <img  class="youdian" src="allimg/pc/youdian2.jpg">
	  <img  class="tit" src="allimg/pc/tit1.png">
	  <!--户型鉴赏-->
	 <div  class="layui-carousel" id="test1" style="background-color: #fff !important;">
			  <div carousel-item="">
			    <div><img src="allimg/pc/huxing22.jpg"></div>
			    <div><img src="allimg/pc/huxing23.jpg"></div>
			    <div><img src="allimg/pc/huxing24.jpg"></div>
			    <div><img src="allimg/pc/huxing25.jpg"></div>
			    <div><img src="allimg/pc/huxing26.jpg"></div>
			    <div><img src="allimg/pc/huxing27.jpg"></div>
			    <div><img src="allimg/pc/huxing28.jpg"></div>
			  </div>
	 </div> 
     <!--/户型鉴赏-->
	 <img  class="youdian mg" src="allimg/pc/pc1.jpg">
	 <img  class="youdian mg mgb" src="allimg/pc/loc.jpg">
  </div>
  <!-- 底部报名 -->
  <div class="footer">
  	<div class="container newsty">
	  	<img src="allimg/pc/foootimg.png">
	    <form id="mainForm" class="f1" action="" method="post" >
	    	<div class="inpbox">
	    	<input id="name" class="inp1" style="margin-bottom: 10px;" type="text" name="name" value="" placeholder="输入您的姓名">
	    	<input class="inp1" maxlength="11" id="phone"  type="tel" name="telphone" value="" placeholder="输入您手机号">
	    	</div> 
	    	<input id="sub"  class="submit" type="button" onclick="test();f()" value="提交">
	    </form>

    </div>
   <!--  <div class="container new111">
         <div class="footertext">地址：南昌市站前路19号 &nbsp;&nbsp; 投资商：东亚实业 &nbsp;&nbsp; 代理商：盈家置业</div>
	    <div class="footertext1">1、本宣传资料所载内容仅为要约邀请，不构成对我司具有约束力的要约或最终承诺，最终以正式的商品房买卖合同约定及政府规划、批文为准。本宣传资料的发布日期为2019年10月，东亚实业保留对其内容修改的权利，</br>敬请留意最新资料。2、本广告相关文字、图片及建筑设计效果图是对项目所做的示意表现，仅供参考，最终标准详见政府相关部门批准文件、图则。</div>
	</div> -->
  </div>
  <script type="text/javascript">
   function test(){
	   //  var val=$("#name").val();
	  	// if(val==""){
	  	// 	alert('名字是必填项');
	  	// }
	  	var val1= $('#phone').val();
	  	var dh=/^1(3|4|5|6|7|8|9)\d{9}$/;
	    if(!dh.test(val1)){
			alert('号码格式不正确');
			return false;
			}; 
        $.ajax({
             //几个参数需要注意一下
                 type: "POST",//方法类型
                 dataType: "text",//预期服务器返回的数据类型
                 url: "http://fang.yiikii.com/form.php" ,//url
                 data: $('#mainForm').serialize(),
                 success: function (result) {
                     // console.log(result);//打印服务端返回的数据(调试用)
                         alert(result);
                         window.location.href="index.html";
                 },
                 error : function() {
                     alert("提交失败！");

                 }
             });
     }
  </script>
 <!-- /底部报名 -->
 <!-- 报名弹窗 -->
 <div class="tanchuang" style="display: none" >
 	<div class="formbox">
 		<div class="t_tit">预约购房 享更多优惠</div>
 		<div class="t_tips">已有<span class="rshu">0</span>人报名</div>
 		<form action="" id="mainForm1" method="post">
 			<input id="name1" class="inp2" style="margin-top:50px"  type="text" name="name" value="" placeholder="输入您的姓名">
	    	<input id="pho1" class="inp2"  maxlength="11"   type="tel" name="telphone" value="" placeholder="输入您手机号">
	    	<input  class="inp3"   type="button" value="提交" onclick="test2();f()" >
	    	<p onclick="closeT()">关闭</p>
 		</form>
 	</div>
 </div>

 <!-- 聊天提示 -->
<a href="http://p.qiao.baidu.com/cps/chat?siteId=14073667&userId=29257700"><img style="position: fixed;width:155px; right: 14%;bottom:260px; " src="allimg/pc/tishi.png"></a>
 <script type="text/javascript">
   function test2(){
	  	var val1= $('#pho1').val();
	  	var dh=/^1(3|4|5|6|7|8|9)\d{9}$/;
        if(!dh.test(val1)){
			alert('号码格式不正确');
			return false;
			}; 
        $.ajax({
             //几个参数需要注意一下
                 type: "POST",//方法类型
                 dataType: "text",//预期服务器返回的数据类型
                 url: "http://fang.yiikii.com/form.php" ,//url
                 data: $('#mainForm1').serialize(),
                 success: function (result) {
                     // console.log(result);//打印服务端返回的数据(调试用)
                         alert(result);
                         window.location.href="index.html";
                 },
                 error : function() {
                     alert("提交失败！");
                 }
             });
     };
 	function openT(){
 		document.getElementsByClassName('tanchuang')[0].style.display="block"
 	};
 	function closeT(){
 		document.getElementsByClassName('tanchuang')[0].style.display="none"
 	};
 </script>
 <!-- /报名弹窗 -->
	<script type="text/javascript"  src="layui/layui.js"  ></script>
	<script type="text/javascript" >
		layui.use('carousel', function(){
		  var carousel = layui.carousel;
		  //建造实例
		  carousel.render({
		    elem: '#test1'
		    ,width: '100%' //设置容器宽度
		    ,height: '640px'
		    ,arrow: 'always' //始终显示箭头
		    //,anim: 'updown' //切换动画方式
		  });
		});
	</script>


</body>

</html>